package user;

import javax.swing.*;
import java.util.regex.Pattern;

public class ToolUtil {
    public static boolean isEmpty(String str){
        //判断是否为空
        return str == null || str.trim().isEmpty();
    }

    public static boolean isPasswordValid(String password) {
        return password != null && password.matches("[1-9]\\d*");
    }
}

